<?PHP
if (isset($_POST['action'])) {
	if (($_POST['action'] == "View items from category") && (isset($_POST['checkbox_Inventory']))) {
	//List all product in the same category with THE 1st CHECKED-BOX item
		session_start();
		$_SESSION['checkbox_Inventory'] = $_POST['checkbox_Inventory'];
		header('Location: ./category.php');
	}
	elseif ($_POST['action'] == "Update item") {
		session_start();
		$_SESSION['checkbox_Inventory'] = $_POST['checkbox_Inventory'];
		header("Location: ./update_inventory.php");
	}
	elseif ($_POST['action'] == "Delete items") {
		if (isset($_POST['checkbox_Inventory'])) {
			session_start();
			$_SESSION['checkbox_Inventory'] = $_POST['checkbox_Inventory'];
			header("Location: ./delete_inventory_confirmation.php");
		}
		else {
		header("Location: ./index.php");
		}
	}	
	else {
		header("Location: ./index.php");
	}
}
?>	